<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container{
            width: 1000px;
            height: 500px;
            background: #ccc;
            overflow: hidden;
        }
        .slider{
            float:left;
            width:200px;
            height: 100%;
            background: orange;
        }
        .content{
            overflow: hidden;
            height: 100%;
            background: red;
        }
    </style>
</head>
<body>
    <!--使用两栏自适应布局的时候,右侧部分切记不要给宽度-->
    <div class="container">
        <div class="slider"></div>
        <div class="content"></div>
    </div>
</body>
</html>
